<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>6.预解析的必要性</title>
</head>
<body>
  <script type ='module'>
    // 预解析 ：模块无论加载多少次，只会在第一次加载的时候执行
    import { lesson } from './1.1.js'
    import { count } from './1.2.js'
    console.log(lesson.data);
    console.log(count);
  </script>
</body>
</html>